package com.platform.entity;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

//中大团队扩展
/**
 * 拼单表实体
 * 表名 nideshop_collage
 *
 * @author wuf
 * @date 2018-11-23
 */
public class CollageVo implements Serializable {
    private static final long serialVersionUID = 1L;

    //主键
    private Integer id;
    //商品ID
    private Integer goodsId;
    //拼单量
    private Integer collageNum;
    //拼单价格
    private BigDecimal collagePrice;
    //是否有客户等级优惠
    private Integer isClientDiscount;
    //客户等级优惠，0.85
    private BigDecimal clientDiscount;
    //是否有高级客户等级优惠
    private Integer isVipClientDiscount;
    //高级客户等级优惠，0.75
    private BigDecimal vipClientDiscount;
    //是否启用，0表示禁用，1表示启用
    private Integer isActive;
    //截止日期
    private Date endDate;
    //当前销售量
    private Integer currNum;

    /**
     * 设置：主键
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 获取：主键
     */
    public Integer getId() {
        return id;
    }
    /**
     * 设置：商品ID
     */
    public void setGoodsId(Integer goodsId) {
        this.goodsId = goodsId;
    }

    /**
     * 获取：商品ID
     */
    public Integer getGoodsId() {
        return goodsId;
    }
    /**
     * 设置：拼单量
     */
    public void setCollageNum(Integer collageNum) {
        this.collageNum = collageNum;
    }

    /**
     * 获取：拼单量
     */
    public Integer getCollageNum() {
        return collageNum;
    }
    /**
     * 设置：拼单价格
     */
    public void setCollagePrice(BigDecimal collagePrice) {
        this.collagePrice = collagePrice;
    }

    /**
     * 获取：拼单价格
     */
    public BigDecimal getCollagePrice() {
        return collagePrice;
    }
    /**
     * 设置：是否有客户等级优惠
     */
    public void setIsClientDiscount(Integer isClientDiscount) {
        this.isClientDiscount = isClientDiscount;
    }

    /**
     * 获取：是否有客户等级优惠
     */
    public Integer getIsClientDiscount() {
        return isClientDiscount;
    }
    /**
     * 设置：客户等级优惠，0.85
     */
    public void setClientDiscount(BigDecimal clientDiscount) {
        this.clientDiscount = clientDiscount;
    }

    /**
     * 获取：客户等级优惠，0.85
     */
    public BigDecimal getClientDiscount() {
        return clientDiscount;
    }
    /**
     * 设置：是否有高级客户等级优惠
     */
    public void setIsVipClientDiscount(Integer isVipClientDiscount) {
        this.isVipClientDiscount = isVipClientDiscount;
    }

    /**
     * 获取：是否有高级客户等级优惠
     */
    public Integer getIsVipClientDiscount() {
        return isVipClientDiscount;
    }
    /**
     * 设置：高级客户等级优惠，0.75
     */
    public void setVipClientDiscount(BigDecimal vipClientDiscount) {
        this.vipClientDiscount = vipClientDiscount;
    }

    /**
     * 获取：高级客户等级优惠，0.75
     */
    public BigDecimal getVipClientDiscount() {
        return vipClientDiscount;
    }
    /**
     * 设置：是否启用，0表示禁用，1表示启用
     */
    public void setIsActive(Integer isActive) {
        this.isActive = isActive;
    }

    /**
     * 获取：是否启用，0表示禁用，1表示启用
     */
    public Integer getIsActive() {
        return isActive;
    }
    /**
     * 设置：截止日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    public void setEndDate(Date endDate) {
        this.endDate = endDate;
    }

    /**
     * 获取：截止日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    public Date getEndDate() {
        return endDate;
    }
    /**
     * 设置：当前销售量
     */
    public void setCurrNum(Integer currNum) {
        this.currNum = currNum;
    }

    /**
     * 获取：当前销售量
     */
    public Integer getCurrNum() {
        return currNum;
    }
}
